<div class="cars view">
<h2><?php  echo __('%s - %s',$car['Car']['marca'],$car['Car']['modelo']); ?></h2>
	<dl>
		<dt><?php echo __('Cliente'); ?></dt>
		<dd>
			<?php echo h($car['Client']['nombre']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Chapa'); ?></dt>
		<dd>
			<?php echo h($car['Car']['chapa']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Vim'); ?></dt>
		<dd>
			<?php echo h($car['Car']['vim']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Marca'); ?></dt>
		<dd>
			<?php echo h($car['Car']['marca']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modelo'); ?></dt>
		<dd>
			<?php echo h($car['Car']['modelo']); ?>
			&nbsp;
		</dd>
		
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>
		<li><?php  echo $this->Html->link('Volver',"javascript:history.back()"); ?> </li>
		<li><?php echo $this->Html->link(__('Salir'), array('controller'=>'users', 'action' => 'logout')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Servicos realizados'); ?></h3>
	<?php if (!empty($carData)): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Descripción'); ?></th>
		
		<th><?php echo __('Fecha'); ?></th>
		<th><?php echo __('Kilometraje'); ?></th>
	<?php
		$i = 0;

		foreach ($carData as $data): ?>
		<tr>
			<td><?php echo $data['Service']['descripcion']; ?></td>
			<td><?php echo date('d/m/Y',strtotime($data['Service']['fecha'])); ?></td>
			<td><?php echo $data['Service']['kilometraje']; ?></td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>